package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author chen huilong
 * @since 2022-10-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="RoomInfo对象", description="")
public class RoomInfo implements Serializable {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ID_WORKER)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "宿舍号（如5416）")
    private String roomId;

    @ApiModelProperty(value = "所属宿舍楼")
    private Long buildingId;

    @ApiModelProperty(value = "床位总数")
    private Integer bedCount;

    @ApiModelProperty(value = "剩余可用床位数量")
    private Integer bedRemainder;

    @ApiModelProperty(value = "入住用户性别（0男、1女、2未知）")
    private String userGender;

    @ApiModelProperty(value = "宿舍类型（如上床下桌)")
    private String roomType;

    @ApiModelProperty(value = "宿舍照片")
    private String image;

}
